///*
// * Licensed under the License, Version 1.0 (the "License");
// * You may obtain a copy of the License at
// *   http://www.heavenick.com/license/License 
// * Copyright information Heavenick to all.
// * Unless the applicable legal requirements or written 
// * consent, can use or around the code, and no warranties 
// * of any kind and state responsibility.
// */
//package com.heavenick.core.config;
//
//import java.util.Properties;
//
//import org.apache.ibatis.session.SqlSessionFactory;
//import org.mybatis.guice.XMLMyBatisModule;
//
//import com.google.inject.Guice;
//import com.google.inject.Injector;
//
///**
// * 
// * @author Heavenick
// * @version 1.0
// * @date 2012-8-6 下午11:08:39
// */
//public class XmlBootstrap {
//	public void config() {
////		final Properties props = new Properties();
////		props.setProperty("JDBC.username", "mybatis-user");
////		props.setProperty("JDBC.password", "changeme");
//		Injector injector = Guice.createInjector(new XMLMyBatisModule() {
//			@Override
//			protected void initialize() {
//				setEnvironmentId("test");
//				setClassPathResource("sqlmapconfig.xml");
////				addProperties(props);
//			}
//		});
//		
//		SqlSessionFactory seesionFactory = injector.getInstance(SqlSessionFactory.class);
//		seesionFactory.openSession();
//	}
//	
//	public static void main(String[] args) {
//		new XmlBootstrap().config();
//	}
//}